package StudyCode.summary.mycollection;

import java.util.TreeSet;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class GetSizeOfTreeSet {
	public static void main(String[] args) {
		TreeSet tSet = new TreeSet();
		System.out.println("TreeSet 大小: " + tSet.size());
		tSet.add(new Integer("1"));
		tSet.add(new Integer("2"));
		tSet.add(new Integer("3"));

		System.out.println("TreeSet 添加值后大小: " + tSet.size());
	}
}
